<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<s:include value="/WEB-INF/pages/includes/head.jsp" />
<body class="two-column">
	<div id="container">
		<s:include value="/WEB-INF/pages/includes/header.jsp" /><s:set name="menu" value="'admin'" />
		<s:include value="/WEB-INF/pages/includes/menu.jsp" />
		<div id="cbody">
			<div id="sidebar1">
	  			<s:include value="/WEB-INF/pages/admin/includes/menu.jsp" />
	  		</div>
			<div id="content">
				<h2><s:text name="admin.h2" /></h2>
				<s:form label="%{getText('forum')}" action="%{actionMethod + 'Forum'}" validate="true" id="save" cssClass="basic">
	            	<fieldset>
	            		<legend><s:text name="forum.settings" /></legend>
	            		<s:hidden key="eid" />
	            		<s:hidden key="actionMethod" />
            			<s:select name="pid" key="parent" value="%{parent.id}" list="forumList"
            				listKey="id" listValue="name" headerKey="" headerValue="%{getText('noParent')}" />
	            		<s:textfield key="name" required="true" cssClass="text" />
	            		<s:textarea key="description" required="true" cssClass="text" />
	            		<s:select key="type" list="@kiff.enumerator.ForumType@values()" listKey="name()" listValue="label" />
	            		<s:select key="status" list="@kiff.enumerator.ForumStatus@values()" listKey="name()" listValue="label" />
	            		<s:if test="actionMethod == 'add' || actionMethod == 'create'">
            				<s:select name="aclId" key="permissions" list="forumList"
            					listKey="permissions.id" listValue="%{'Copy ' + name}" headerKey="" headerValue="Default" />
            			</s:if>
	            	</fieldset>
	            	<p>
	            	<s:submit key="save" action="%{actionMethod + 'Forum'}" cssClass="first"/>
	            	</p>
	            </s:form>
            </div>
            <div class="floatClear"></div>
		</div>
		<s:include value="/WEB-INF/pages/includes/footer.jsp" />
	</div>
</body>
</html>